package com.yxw.yxnet_cd_center.customer_service.service;

import com.yxw.yxnet_cd_center.common.dto.PageVO;
import com.yxw.yxnet_cd_center.customer_service.dto.FlowRuleAddDTO;
import com.yxw.yxnet_cd_center.customer_service.dto.WorkflowForUserQueryDTO;
import com.yxw.yxnet_cd_center.customer_service.dto.WorkflowQueryDTO;
import com.yxw.yxnet_cd_center.customer_service.entity.YxCsFlowRuleEntity;
import com.yxw.yxnet_cd_center.customer_service.vo.YxCsWorkflowForUserVo;
import com.yxw.yxnet_cd_center.customer_service.vo.YxCsWorkflowVo;

/**
 * 登录管理
 * @author liuxin
 * @date 2023.09.12
 */
public interface WorkflowService {

    /**
     * 查询工作流转接记录
     * @param dto
     * @return
     */
    PageVO<YxCsWorkflowVo> getWorkflowList(WorkflowQueryDTO dto);

    /**
     * 分流管理-设置分流规则
     * @param dto
     * @param entity
     */
    void addWorkflowRule(YxCsFlowRuleEntity entity,FlowRuleAddDTO dto);

    /**
     * 工作流管理-工作流记录删除
     * @param id
     */
    void deleteWorkflowById(Long id);

    /**
     * 人员分流规则查询
     */
    PageVO<YxCsWorkflowForUserVo> getWorkflowListForUser(WorkflowForUserQueryDTO dto);
}
